﻿namespace FlyingEye.DeviceMaintenanceServices
{
    public class CreateMaintenanceRecordRequest
    {
        public CreateMaintenanceRecordRequest(
            Guid devicePartId,
            string maintenanceStep,
            bool isActive,
            string? cancellationReason)
        {
            DevicePartId = devicePartId;
            MaintenanceStep = maintenanceStep;
            IsActive = isActive;
            CancellationReason = cancellationReason;
        }

        /// <summary>
        /// 保养部件 ID
        /// </summary>
        public Guid DevicePartId { get; set; }

        /// <summary>
        /// 保养步骤
        /// <see cref="Consts.MaintenanceStep"/>
        /// </summary>
        public string MaintenanceStep { get; set; }

        /// <summary>
        /// 记录是否是激活状态
        /// </summary>
        public bool IsActive { get; set; }

        /// <summary>
        /// 终止原因
        /// </summary>
        public string? CancellationReason { get; set; }
    }
}
